package com.sloera.spring.aop.helloword;

/**
 * @author sloera
 * @create 2020/4/8
 */
public class Main {
    public static void main(String[] args) {
        //ArithmeticCaculator arithmeticCaculator = null;
        //arithmeticCaculator = new ArithmeticCaculatorImpl();
        ArithmeticCaculator target = new ArithmeticCaculatorImpl();
        ArithmeticCaculator proxy = new ArithmeticCaculatoryLoggingProxy(target).getLoggingProxy();

        int result = proxy.add(1, 2);
        System.out.println("result " + result);
    }
}
